home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / x11 / Imakefile < prev    next >
Encoding:
Makefile  |  1996-07-07  |  2.0 KB  |  80 lines  |  [TEXT/R*ch]

  1.  
  2. XCOMM ----- X11 Xconq Imakefile.
  3.  
  4. XCOMM   Do I have the XPM library?
  5. #define IhaveXPM
  6.  
  7. /*
  8.  * ComplexProgramTarget_4 - generate rules for compiling and linking the
  9.  * program specified by $(OBJS4) and $(SRCS4) and installing the program and
  10.  * man page.  It should be used to build the fourth program in Imakefiles 
  11.  * describing more than one program.
  12.  */
  13. #ifdef IhaveXPM
  14. #ifndef ComplexProgramTarget_4
  15. #define    ComplexProgramTarget_4(program,locallib,syslib)            @@\
  16. ProgramTargetHelper(program,SRCS4,OBJS4,DEPLIBS4,locallib,syslib)
  17. #endif /* ComplexProgramTarget_4 */
  18. #endif /* IhaveXPM */
  19.  
  20. #ifdef IhaveXPM
  21. CDEBUGFLAGS = -g -DHAVE_XPM -DHAVE_SELFILE
  22. #else  /* IhaveXPM */
  23. CDEBUGFLAGS = -g -DHAVE_SELFILE
  24. #endif /* IhaveXPM */
  25.  
  26. GLIBDIR = ../lib
  27. IMFLIBDIR = ../lib-x11
  28.  
  29. DEFINES = -DUNIX -DUSE_CONSOLE -DXCONQLIB=\"$(GLIBDIR)\" -DIMFLIB=\"$(IMFLIBDIR)\"
  30.  
  31. INCLUDES = -I../x11 -I../kernel
  32.  
  33. LOCAL_LIBRARIES = XawClientLibs
  34.  
  35. CONQLOW_LIBRARIES = ../kernel/libconqlow.a
  36.  
  37. CONQ_LIBRARIES = ../kernel/libconq.a $(CONQLOW_LIBRARIES)
  38.  
  39. SRCS1 = xconq.c
  40.  
  41. OBJS1 =    xconq.o \
  42.     xinit.o \
  43.     xmap.o \
  44.     xdraw.o \
  45.     xcmd.o \
  46.     xprint.o \
  47.     xdesign.o \
  48.     xhelp.o \
  49.     ximf.o \
  50.     xcloseup.o
  51.  
  52. XUTOBJ = ximf.o \
  53.      xutil.o
  54.  
  55. OBJS2 = xshowimf.o $(XUTOBJ)
  56. OBJS3 = x2imf.o $(XUTOBJ)
  57. OBJS4 = imf2x.o $(XUTOBJ)
  58.  
  59. #ifdef IhaveXPM
  60. PROGRAMS = xconq x2imf imf2x xshowimf
  61. #else  /* IhaveXPM */
  62. PROGRAMS = xconq x2imf xshowimf
  63. #endif /* IhaveXPM */
  64.  
  65. ComplexProgramTarget_1(xconq, $(CONQ_LIBRARIES), $(LOCAL_LIBRARIES))
  66.  
  67. #ifdef IhaveXPM
  68. ComplexProgramTarget_2(xshowimf, $(CONQLOW_LIBRARIES) ../SelFile/libXgnu.a, -lXpm $(LOCAL_LIBRARIES))
  69. ComplexProgramTarget_3(x2imf, $(CONQLOW_LIBRARIES), -lXpm $(LOCAL_LIBRARIES))
  70. ComplexProgramTarget_4(imf2x, $(CONQLOW_LIBRARIES), -lXpm $(LOCAL_LIBRARIES))
  71. #else  /* IhaveXPM */
  72. ComplexProgramTarget_2(xshowimf, $(CONQLOW_LIBRARIES) ../SelFile/libXgnu.a, $(LOCAL_LIBRARIES))
  73. ComplexProgramTarget_3(x2imf, $(CONQLOW_LIBRARIES), $(LOCAL_LIBRARIES))
  74. #endif /* IhaveXPM */
  75.  
  76. BuildIncludes($(BUTTONPICTURES),bitmaps,..)
  77.  
  78. InstallAppDefaults(Xconq)
  79. InstallAppDefaults(Xconq-co)
  80.